package com.sys.tools;

import java.io.Serializable;

public class DataTreeResult implements Serializable {
    private static final long serialVersionUID=1L;
    private Long id;    //节点ID，对加载远程数据很重要
    private String text;// 显示节点文本
    private String state;// 节点状态，‘open’ 或‘closed’，如果为‘closed’的时候，将不会自动展开该节点
    private String checked;//表示节点是否被选中
    private Long parentId; // 上级id

    public DataTreeResult(Long id, String text, String state, String checked, Long parentId) {
        this.id = id;
        this.text = text;
        this.state = state;
        this.checked = checked;
        this.parentId = parentId;
    }
    public DataTreeResult(){ }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getChecked() {
        return checked;
    }

    public void setChecked(String checked) {
        this.checked = checked;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
}
